package com.cnswhy.cloud.server.app.dto;

import com.cnswhy.cloud.server.common.entity.enumeration.SplitType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "QuerySplitValueDTO", description = "")
public class QuerySplitValueDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 下级服务商ID
     */
    @ApiModelProperty(value = "下级服务商ID")
    @NotNull(message = "下级服务商ID不能为空")
    private Long downCustomerId;

    @NotEmpty(message = "分润类型不能为空")
    private SplitType splitType;
}
